					 
					 function chkName(e){
						var unicode=e.charCode? e.charCode : e.keyCode 
						if (unicode>47&&unicode<58)
						return false; 
					}
							
				

				function login ( form ){
	 		  	  var check=0;
	 			  var param="user="+form.userName.value+"&password="+form.pass.value;
	 			alert(param);
	 				$.ajax({
	 					type:"POST",
	 					data: param,
	 					async: false,
	 					url: 'LoginServlet', 
	 					success: function(data) {
	 						alert(data);
	 					}});	
	 				
			
				}
				
				function login ( form ){
		 		  	  var check=0;
		 			  var param="user="+form.userName.value+"&password="+form.pass.value+"&firstName"+form.fName.value+"&lastName"+form.lName.value;
		 				$.ajax({
		 					type:"POST",
		 					data: param,
		 					async: false,
		 					url: 'RegisterServlet', 
		 					success: function(data) {
		 						alert(data);
		 					}});	
		 				
				
					}